home *** CD-ROM | disk | FTP | other *** search
/ Apple Color Graphics Sampler / Apple Color Graphics Sampler.iso / English / Screen Savers / Dark Side of the Mac / FaderShell / Invert.r < prev    next >
Encoding:
Text File  |  1998-11-16  |  1.6 KB  |  81 lines  |  [TEXT/MPS ]

  1. /*
  2.  
  3.     Invert.r - Resources for the Invert fader
  4.     
  5.     copyright © 1989 by Tom Dowdy
  6.     All rights reserved
  7.     
  8.     
  9. */
  10. #include "Types.r"
  11.  
  12.  
  13. #define A            15        /* A = spacing around edge of dialog */
  14. #define B            22        /* B = spacing around icon = A * 1.5 */
  15. #define TextHeight    20        /* Height of the text in the dialog */
  16. #define TextWidth    250        /* Width of the text in the dialog */
  17.  
  18. #define XStart        50                                /* Start of dialog */
  19. #define YStart        40                                /* Start of dialog */
  20. #define Width        A + TextWidth + A                /* Width of dialog */
  21. #define Height        A + TextHeight + A + TextHeight + B + 20 + A        /* Height of dialog */
  22.  
  23. #define InterbuttonX     10                            /* Spacing between the buttons */
  24.  
  25. resource 'STR ' (10000) {
  26.     "Invert copyright © 1990 by Tom Dowdy";
  27. };
  28.  
  29. resource 'DITL' (10000) {
  30.     {    /* array DITLarray: 4 elements */
  31.         /* [1] */
  32.         {Height - A - 20, Width - A - 60, 
  33.             Height - A, Width - A},
  34.         Button {
  35.             enabled,
  36.             "OK"
  37.         },
  38.         /* [1] */
  39.         {Height - A - 20, Width - A - 60 - 70, 
  40.             Height - A, Width - A - 70},
  41.         Button {
  42.             enabled,
  43.             "Cancel"
  44.         },
  45.         /* [3] */
  46.         {Height - A- 20-4, Width - A - 60-4, 
  47.             Height - A+4, Width - A+4},
  48.         UserItem {
  49.             disabled
  50.         },
  51.         /* [4] */
  52.         {A*2, A, A*2 + TextHeight, A + TextWidth},
  53.         StaticText {
  54.             disabled,
  55.             "Invert Fader Settings"
  56.         },
  57.         
  58.         {A+TextHeight + A, B, A+TextHeight + A + 16, B + TextWidth},
  59.         CheckBox {
  60.             enabled,
  61.             "Invert screen during fade"
  62.         },
  63.  
  64.         {0  , A, 0 + 16, A + TextWidth},
  65.         UserItem {
  66.             disabled
  67.         },
  68.         
  69.     }
  70. };
  71.  
  72. resource 'DLOG' (10000) {
  73.     {YStart, XStart, YStart + Height, XStart + Width},
  74.     dBoxProc,
  75.     invisible,
  76.     noGoAway,
  77.     0x0,
  78.     10000,
  79.     ""
  80. };
  81.